package io.israel.ephraim;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

/**
 * @author lijinting01
 */
@Slf4j
@Component
public class DocumentGenerationDelegate implements JavaDelegate {
	@Override
	public void execute(DelegateExecution execution) {
		String pdk = execution.getVariable("processDefinitionKey", String.class);
		log.info("Process Definition Key : {}", pdk);
	}
}
